package com.lagouedu.consistentsession.service;

import com.lagouedu.consistentsession.dao.UserDao;
import com.lagouedu.consistentsession.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

@Service
public class LoginServiceImpl implements LoginService{

    @Autowired
    private UserDao userDao;
    @Override
    public User checkLoginUser(User user) {

        return userDao.checkUser(user.getUserName(),user.getPassword());
    }
}
